package 预习;

import java.util.Random;


public class 随机打印成语 {
    public static void main(String[] args) {
        Random r = new Random();
        int shengcheng = r.nextInt(7);
        switch (shengcheng) {
            case 1:
                System.out.println("一帆风顺");
                break;
            case 2:
                System.out.println("二话不说");
                break;
            case 3:
                System.out.println("三心二意");
                break;
            case 4:
                System.out.println("四面楚歌");
                break;
            case 5:
                System.out.println("五湖四海");
                break;
            case 6:
                System.out.println("六亲不认");
                break;
            case 7:
                System.out.println("七上八下");
                break;
        }
    }
}
